package com.twentyfour.service;

import com.twentyfour.dao.AdminMapper;
import com.twentyfour.pojo.*;

import java.util.List;

public class AdminServiceImpl implements AdminService{
    public AdminMapper adminMapper;

    public void setAdminMapper(AdminMapper adminMapper) {
        this.adminMapper = adminMapper;
    }
    @Override
    public List<Admin> queryAllAdmin() {
        return adminMapper.queryAllAdmin();
    }

    @Override
    public int addTeam(Team team) {
        return adminMapper.addTeam(team);
    }

    @Override
    public int deleteTeam(Integer account) {
        return adminMapper.deleteTeam(account);
    }

    @Override
    public int updateTeam(Team team) {
        return adminMapper.updateTeam(team);
    }

    @Override
    public List<Team> queryAllTeam() {
        return adminMapper.queryAllTeam();
    }

    @Override
    public List<Referee> queryAllReferee() {
        return adminMapper.queryAllReferee();
    }

    @Override
    public List<Item> queryAllItems() {
        return adminMapper.queryAllItems();
    }

    @Override
    public List<GameInformation> queryAllGameInformation() {
        return adminMapper.queryAllGameInformation();
    }

    @Override
    public int updateGameInformation(GameInformation gameInformation) {
        return adminMapper.updateGameInformation(gameInformation);
    }

    @Override
    public List<Referee_Item> queryAllRefereeByItemId(Integer itemId) {
        return adminMapper.queryAllRefereeByItemId(itemId);
    }

    @Override
    public List<GameInformation> queryAllGameInformationByItemId(Integer itemId) {
        return adminMapper.queryAllGameInformationByItemId(itemId);
    }

    @Override
    public int addRefereeItem(Referee_Item referee_item) {
        return adminMapper.addRefereeItem(referee_item);
    }

    @Override
    public int deleteRefereeItem(Referee_Item referee_item) {
        return adminMapper.deleteRefereeItem(referee_item);
    }

    @Override
    public int addRefereeScore(RefereeScore refereeScore) {
        return adminMapper.addRefereeScore(refereeScore);
    }

    @Override
    public int deleteRefereeScore(Integer refereeId) {
        return adminMapper.deleteRefereeScore(refereeId);
    }

    @Override
    public List<RefereeScore> queryAllRefereeScore() {
        return adminMapper.queryAllRefereeScore();
    }

    @Override
    public int addPersonalItemFinalScore(PersonalItemFinalScore personalItemFinalScore) {
        return adminMapper.addPersonalItemFinalScore(personalItemFinalScore);
    }

    @Override
    public List<PersonalItemFinalScore> queryAllPersonalItemScore() {
        return adminMapper.queryAllPersonalItemScore();
    }

    @Override
    public List<TeamScore> queryAllTeamScore() {
        return adminMapper.queryAllTeamScore();
    }


   /* @Override
    public List<GameInfo> queryAllGames() {
        return adminMapper.queryAllGames();
    }

    @Override
    public List<GameInformation> queryAllGameInfo() {
        return adminMapper.queryAllGameInfo();
    }

    @Override
    public int updateGameInfo(GameInformation gameInformation) {
        return adminMapper.updateGameInfo(gameInformation);
    }

    @Override
    public int deleteGame(int id) {
        return adminMapper.deleteGame(id);
    }

    @Override
    public int addGame(GameInfo gameInfo) {
        return adminMapper.addGame(gameInfo);
    }

    @Override
    public List<GameInformation> queryGameListByItemId(Integer ItemId) {
        return adminMapper.queryGameListByItemId(ItemId);
    }




    @Override
    public List<Athlete> queryAllAthleteByItemId(Integer itemId) {
        return adminMapper.queryAllAthleteByItemId(itemId);
    }

    @Override
    public List<Referee_Item> queryAllRefereeByItemId(Integer itemId) {
        return adminMapper.queryAllRefereeByItemId(itemId);
    }

    @Override
    public int addReferee(Referee_Item referee_item) {
        return adminMapper.addReferee(referee_item);
    }

    @Override
    public int deleteReferee(Integer refereeId) {
        return 0;
    }

    @Override
    public int updateReferee(Referee referee) {
        return adminMapper.updateReferee(referee);
    }

    @Override
    public List<RefereeScore> queryRefereeScoreByRefereeId(Integer refereeId) {
        return adminMapper.queryRefereeScoreByRefereeId(refereeId);
    }*/
}
